package com.linkhub.oms.common.enums.mp;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.linkhub.oms.common.enums.IEnumConvert;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: LocalProductTypeEnum
 * @Author: echo
 * @Date: 2024/5/12 13:09
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
public enum LocalProductTypeEnum implements IEnumConvert<Integer> {

    SINGLE_PRODUCT(1, "单个产品"),

    PACKAGING_MATERIAL(2, "包材"),

    COMPOSITE_PRODUCT(3, "组合产品"),
    ;

    @EnumValue
    private final Integer type;
    private final String desc;

    @Override
    public Integer getCode() {
        return this.getType();
    }
}
